import json


def read_login_data(filename):
    empty_list = []
    with open(file=filename, encoding="utf-8") as f:
        jsonData = json.load(f)
        for i in jsonData:
            empty_list.append(tuple(i.values()))
            print(empty_list)
        return empty_list


# read_login_data("./data/login_data.json")
def read_emp_data(filename, api_name):
    empty_list = []
    with open(file=filename, encoding="utf-8") as f:
        jsonData = json.load(f)
        for i in jsonData:
            temp_data = i.get(api_name)
            empty_list.append(tuple(temp_data.values()))
            # print(empty_list)
        return empty_list


# read_emp_data("./data/empolyee.json", "add_emp")
